package edu.upc;

public class CancionDeLaCerveza {
	public static void main(String[] args) {
		int beerNum = 99;
		
		String word = "botellassss";
		
		while (beerNum > 0) {
			if(beerNum ==1){
				word = "botellas"; //singular
			}
			System.out.println(beerNum + " " + word + " de cerveza en la caja");
			System.out.println(beerNum + " " + word + " de cerveza.");
			System.out.println("Saca una.");
			System.out.println("Pasala a todos.");
			beerNum = beerNum - 1;
			
			if(beerNum >0){
				System.out.println(beerNum + " " + word + 
						"de cerveza en la caja");				
			}else{
				
				System.out.println("No hay mas botellas en la caja");
			}
		}
		
	}

}
